package 字符串;

/**
 * @author 帅小伙
 * @date 2021/12/26
 * @description
 */
public class Demo08JZ58 {


    public String LeftRotateString(String str,int n) {
        int l = str.length();
        if(l == 0){
            return str;
        }
        n = n % l;
        str = str + str;
        return str.substring(n,n+l);
    }
}
